package com.ruoyi.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.TaskTeacherMapper;
import com.ruoyi.teacher.domain.TaskTeacher;
import com.ruoyi.teacher.service.ITaskTeacherService;

/**
 * 老师任务中间Service业务层处理
 * 
 * @author wwb
 * @date 2022-12-25
 */
@Service
public class TaskTeacherServiceImpl implements ITaskTeacherService 
{
    @Autowired
    private TaskTeacherMapper taskTeacherMapper;

    /**
     * 查询老师任务中间
     * 
     * @param id 老师任务中间主键
     * @return 老师任务中间
     */
    @Override
    public TaskTeacher selectTaskTeacherById(Long id)
    {
        return taskTeacherMapper.selectTaskTeacherById(id);
    }

    /**
     * 查询老师任务中间列表
     * 
     * @param taskTeacher 老师任务中间
     * @return 老师任务中间
     */
    @Override
    public List<TaskTeacher> selectTaskTeacherList(TaskTeacher taskTeacher)
    {
        return taskTeacherMapper.selectTaskTeacherList(taskTeacher);
    }

    /**
     * 新增老师任务中间
     * 
     * @param taskTeacher 老师任务中间
     * @return 结果
     */
    @Override
    public int insertTaskTeacher(TaskTeacher taskTeacher)
    {
        return taskTeacherMapper.insertTaskTeacher(taskTeacher);
    }

    /**
     * 修改老师任务中间
     * 
     * @param taskTeacher 老师任务中间
     * @return 结果
     */
    @Override
    public int updateTaskTeacher(TaskTeacher taskTeacher)
    {
        return taskTeacherMapper.updateTaskTeacher(taskTeacher);
    }

    /**
     * 批量删除老师任务中间
     * 
     * @param ids 需要删除的老师任务中间主键
     * @return 结果
     */
    @Override
    public int deleteTaskTeacherByIds(Long[] ids)
    {
        return taskTeacherMapper.deleteTaskTeacherByIds(ids);
    }

    /**
     * 删除老师任务中间信息
     * 
     * @param id 老师任务中间主键
     * @return 结果
     */
    @Override
    public int deleteTaskTeacherById(Long id)
    {
        return taskTeacherMapper.deleteTaskTeacherById(id);
    }
}
